{extend name="PublicBase/showBase" /}

{block name="body"}
<div class="main">
    <div class="row">
        <div class="col-md-12">
            <section class="tile color transparent-black">
                <div class="tile-header bg-transparent-black-2">
                    <h1>
                        {if condition="$Info eq ''"}
                            {:lang('XtCdXz')}
                        {else /}
                            {:lang('XtCdGx')}
                        {/if}
                    </h1>
                    <div class="controls">
                        <a href="javascript:void(0);" onclick="window.history.back();"><i class="fa fa-arrow-left"></i></a>
                        {if condition="$Info eq ''"}
                            <a href="{:url('SystemRule/showAdd')}"><i class="fa fa-refresh"></i></a>
                        {else /}
                            <a href="{:url('SystemRule/showEdit', array('id'=>$Info['rule_id']))}"><i class="fa fa-refresh"></i></a>
                        {/if}
                    </div>
                </div>
                <div class="tile-body nopadding">
                    <form class="FormTable" action="" method="post">
                        <div class="tile-body">
                            <div class="row">
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCdFj')}</label>
                                    <select class="chosen-select chosen-transparent form-control" name="rule_pid">
                                        <option value="0" {eq name="Info['rule_pid']" value="0"}selected{/eq}>{:lang('XtCdFjDj')}</option>
                                        {volist name="Rule" id="vo"}
                                        <option value="{$vo.rule_id}" {eq name="Info['rule_pid']" value="$vo['rule_id']"}selected{/eq} style="padding-left:{$vo.rule_left}px">{$vo.rule_line}{$vo.rule_title}</option>
                                        {/volist}
                                    </select>
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCdTb')}</label>
                                    <select class="chosen-select chosen-transparent form-control" name="rule_icon">
                                        {volist name="Icon" id="vo"}
                                        <option value="{$vo.content_value}" {eq name="Info['rule_icon']" value="$vo['content_value']"}selected{/eq}>{$vo.content_name}</option>
                                        {/volist}
                                    </select>
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCdGz')}</label>
                                    <input type="text" class="form-control" name="rule_name" value="{$Info.rule_name}" placeholder="{:lang('XtCdGzWk')}{:lang('XtCdGzAl')}" />
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCdMc')}</label>
                                    <input type="text" class="form-control" name="rule_title" value="{$Info.rule_title}" placeholder="{:lang('XtCdMcWk')}{:lang('XtCdMcAl')}" />
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCdZt')}</label>
                                    <select class="chosen-select chosen-transparent form-control" name="rule_state">
                                        <option value="1" {eq name="Info['rule_state']" value="1"}selected{/eq}>{:lang('XtCdZt1')}</option>
                                        <option value="2" {eq name="Info['rule_state']" value="2"}selected{/eq}>{:lang('XtCdZt2')}</option>
                                    </select>
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCdXs')}</label>
                                    <select class="chosen-select chosen-transparent form-control" name="rule_show">
                                        <option value="2" {eq name="Info['rule_show']" value="2"}selected{/eq}>{:lang('XtCdXs2')}</option>
                                        <option value="1" {eq name="Info['rule_show']" value="1"}selected{/eq}>{:lang('XtCdXs1')}</option>
                                    </select>
                                </div>
                                {eq name="User['AdminID']" value="1"}
                                    <div class="form-group col-sm-12">
                                        <label>{:lang('XtCdKf')}</label>
                                        <select class="chosen-select chosen-transparent form-control" name="rule_hide">
                                            <option value="1" {eq name="Info['rule_hide']" value="1"}selected{/eq}>{:lang('XtCdKf1')}</option>
                                            <option value="2" {eq name="Info['rule_hide']" value="2"}selected{/eq}>{:lang('XtCdKf2')}</option>
                                        </select>
                                    </div>
                                {/eq}
                            </div>
                        </div>
                    </form>
                </div>
                <div class="tile-footer bg-transparent-black-2 rounded-bottom-corners">
                    <div class="row">
                        <div class="col-sm-12 text-center">
                            <button type="button" class="btn btn-{:config('CNF_BTNCOLOR')} ajax-post">{:lang('XtAnTj')}</button>
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>
</div>
{/block}

{block name="script"}
    <script>
        $(function(){

        })
    </script>
{/block}
      
